package com.appspot.etao.service;

import java.util.List;

import javax.jdo.PersistenceManager;

import com.appspot.etao.jdo.PMF;
import com.appspot.etao.model.ShopModel;
import com.appspot.etao.model.TaobaokeShopModel;

public class TaobaokeShopService extends BaseService {

	public List<TaobaokeShopModel> getShopList() {
		PersistenceManager pm = PMF.get().getPersistenceManager();
		
		String shopQuery = "select from " + TaobaokeShopModel.class.getName();
		List<TaobaokeShopModel> shopList = (List<TaobaokeShopModel>)pm.newQuery(shopQuery).execute();
		
		pm.close();
		
		return shopList;
	}
}
